//
//  APIClient.h
//  BShop
//
//  Created by chenguibang on 2017/8/11.
//  Copyright © 2017年 chenguibang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AliyunOSSiOS/OSSService.h>
#import <ApiRequest.h>
#import <APiSessionManager.h>
#import "LoginRequest.h"
@interface APIClient : NSObject


//登录网络请求
+ (void)loginWith:(LoginRequest *)params progress:(void (^)(NSProgress * progress))downloadProgress success:(void (^)(ApiResponse *response))success failure:(void (^)(NSURLSessionDataTask * task, NSError * error))failure;


/**
 获取OSStoken

 @param reult reult description
 */
+ (void)getOSSToken:(void(^)(OSSTaskCompletionSource *task,OSSFederationToken
                             *token))reult;

@end
